package factory.simpleFactory;

/**
 * @Author: Doream
 * @Date: 2022/1/27 22:46
 */

/**
 * 奶茶抽象类，定义规范
 */
public abstract class MilkTea {
    public String type;  // 品种 布丁奶茶、波霸奶茶=========== 可以用枚举定义
    public int sweetness; // 甜度 0-10
    public String temperature; // 温度(冰，去冰，常温，温，热)

    public MilkTea(String type, int sweetness, String temperature) {
        this.type = type;
        this.sweetness = sweetness;
        this.temperature = temperature;
    }


    @Override
    public String toString() {
        return type+":{" +
                "sweetness=" + sweetness +
                ", temperature='" + temperature + '\'' +
                '}';
    }

    public String getType() {
        return type;
    }

    public int getSweetness() {
        return sweetness;
    }

    public String getTemperature() {
        return temperature;
    }
}
